import request from '@/utils/request'

// 查询阶段列表
export function listStage(query) {
  return request({
    url: '/stage/stageInfo/list',
    method: 'get',
    params: query
  })
}

// 新增阶段
export function addStage(data) {
  return request({
    url: '/stage/stageInfo',
    method: 'post',
    data: data
  })
}

// 删除阶段
export function delStage(id) {
  return request({
    url: `/stage/stageInfo/${id}`,
    method: 'delete'
  })
}
